From 4bd797550155ffc4516c91d3091b8d089ebbc9a1 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 28 Feb 2006 22:09:12 +0000 Subject: [PATCH] In HTML output, allow utf-8 and correctly close h3 tag. --- gpsbabel/html.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gpsbabel/html.c b/gpsbabel/html.c index b299a74d7..b1021844f 100644 --- a/gpsbabel/html.c +++ b/gpsbabel/html.c @@ -95,14 +95,14 @@ html_disp(const waypoint *wpt) if (strcmp(wpt->description, wpt->shortname)) { if (wpt->url) { char *d = html_entitize(wpt->description); - fprintf(file_out, "%s\n", wpt->url, d); + fprintf(file_out, "%s", wpt->url, d); xfree(d); } else { - fprintf(file_out, "%s\n", wpt->description); + fprintf(file_out, "%s", wpt->description); } - } + fprintf(file_out, "\n"); if (wpt->gc_data.terr) { if (wpt->gc_data.desc_short.utfstring) { char *tmpstr = strip_nastyhtml(wpt->gc_data.desc_short.utfstring); @@ -244,6 +244,7 @@ data_write(void) fprintf(file_out, "\n"); fprintf(file_out, "\n"); fprintf(file_out, "\n"); + fprintf(file_out, " \n"); fprintf(file_out, " GPSBabel HTML Output\n"); fprintf(file_out, " \n"); if (stylesheet) @@ -274,5 +275,5 @@ ff_vecs_t html_vecs = { data_write, NULL, html_args, - CET_CHARSET_ASCII, 0 /* CET-REVIEW */ + CET_CHARSET_UTF8, 0 /* CET-REVIEW */ }; -- 2.30.2